package online.longzipeng.cinemasys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import online.longzipeng.cinemasys.dto.movie.MovieQueryResponseDTO;
import online.longzipeng.cinemasys.entity.Movie;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Repository
public interface MovieMapper extends BaseMapper<Movie> {

    IPage<MovieQueryResponseDTO> getListPage(Page<MovieQueryResponseDTO> page, @Param(Constants.WRAPPER) Wrapper<MovieQueryResponseDTO> qw);

    MovieQueryResponseDTO findById(Long id);
}
